﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace NPredictor
{
	public interface IWordPredictor<TWeight>
	{
		void Insert(string word, TWeight weight);

		void Remove(string word);

		bool Search(string word, out TWeight weight);

		IEnumerator<PredictionResult<TWeight>> Predict(string prefix);
	}
}